package com.genshang.restaurant.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.genshang.restaurant.entity.Accumulategoodslist;
import com.genshang.restaurant.mapper.AccumulategoodslistMapper;
import com.genshang.restaurant.service.IAccumulategoodslistService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author Alex
 * @since 2020-10-24
 */
@Service
public class AccumulategoodslistServiceImpl extends ServiceImpl<AccumulategoodslistMapper, Accumulategoodslist> implements IAccumulategoodslistService {

    @Override
    public Accumulategoodslist getAccumulategoodslistByGoodsId(String goodsId) {
        QueryWrapper<Accumulategoodslist> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("GOODSID", goodsId);
        return this.getOne(queryWrapper);
    }
}
